package net.mingsoft.statistic.dao;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import net.mingsoft.statistic.action.r.DataTable;
import net.mingsoft.statistic.action.r.TableHeader;
import org.apache.ibatis.annotations.Param;

import java.util.List;
import java.util.Map;

/**
 * @author gengfa
 * @date 22/03/08
 */
public interface ZKTableDao {

    Page<DataTable> selectAllTables(@Param("page") Page<?> page, @Param("tableName") String tableName);

    List<TableHeader> selectTableFieldsById(long id);

    List<TableHeader> selectTableFieldsByTableName(String tableName);

    Page<Map<String, Object>> selectPageByTableName(@Param("page") Page<?> page, @Param("tableName") String tableName);
}
